package com.zimin.cloud.system.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zimin.mapper.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户信息
 * </p>
 *
 * @author zimin
 * @since 2021-12-30 11:04
 */
@Getter
@Setter
@TableName("sys_account")
@ApiModel(value = "Account对象", description = "用户信息")
public class Account extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("部门ID")
    @TableField("dept_id")
    private String deptId;

    @ApiModelProperty("用户账号")
    @TableField("account_name")
    private String accountName;

    @ApiModelProperty("密码")
    @TableField("password")
    private String password;

    @ApiModelProperty("用户昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty("用户类型（00系统用户）")
    @TableField("account_type")
    private String accountType;

    @ApiModelProperty("用户邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("手机号")
    @TableField("mobile")
    private String mobile;

    @ApiModelProperty("性别(0 女 1 男 2 未知)")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty("头像")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty("人脸ID，保存到mongodb")
    @TableField("face_id")
    private String faceId;

    @ApiModelProperty("状态(1 正常 0 停用)")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("删除标志(0 正常 1删除)")
    @TableField("is_delete")
//    @TableLogic
    private Integer deletes;

    @ApiModelProperty("创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("更新人")
    @TableField("update_by")
    private String updateBy;


}
